#include "../comm.h"
class Solution {
public:
    vector<int> findColumnWidth(vector<vector<int>>& grid) {
        vector<int> ans(grid[0].size());
        for(int j = 0; j < grid[0].size(); ++j)
        {
            size_t len = 0;
            for(int i = 0; i < grid.size(); ++i)
                len = max(len, to_string(grid[i][j]).size());
            
            ans[j] = len;
        }
        return ans;
    }
};